﻿@model DLM.Web.ViewModel.HomePageView
@using DLM.Infrastructure.Configuration;

<!DOCTYPE html>
<html>
<head>
    <title>交友社区-同城活动-都来米都市交友社区首页</title>
    <link href="@Url.Content("~/Content/css/global.css")" rel="stylesheet" type="text/css" />
    <!--[if IE 6]><link href="../Content/css/global_ie6.css" rel="stylesheet" type="text/css" /><![endif]-->
    @*  <link type="text/css" href="@Url.Content("~/Content/themes/custom/jquery-ui-1.8.18.custom.css")" rel="stylesheet" />*@
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")"></script>
    @*  <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-ui-1.8.18.custom.min.js")"></script>*@
    @*  <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-ui-1.8.11.min.js")"></script>*@
    <!--[if IE 6]><script type="text/javascript" src="../scripts/pngfix.js"></script><![endif]-->
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
</head>
<body>
    @Html.Partial("_LogOnPartial", new DLM.Domain.Model.Account())
    <div id="header">
        <div class="ad1">
            <div class="ad_custom">
                <a href="@Url.Action("Index", "Home")">
                    @{string path = ApplicationSettingsFactory.GetApplicationSettings().AdvPath;}
                    <img src="@Url.Content("~/" + path)" alt="广告" />
                </a>
            </div>
        </div>
        <!--<div class="menu"><ul class="first_ul"><li><a href="index.html">首页</a></li></ul></div>-->
        <div class="search_bar">
            @Html.Partial("_UserSearch")
        </div>
        <div class="bread">
            @Html.MvcSiteMap().SiteMapTitle()
            @* <a href="@Url.Action("Index", "Home")">首页</a>&nbsp;>&nbsp;*@</div>
    </div>
    <div id="content" class="clearfix">
         <div class="sidebar" id="index">
              @{Html.RenderPartial("_Show", Model.TopUser);}
        </div>
      
        <!--main680px-->
        <div class="main" id="index_2">
            <div class="main_tab">
                <div class="main_tab_title">
                    <ul>
                        <li id="#tabs-1" class="current"><span>单身男女聚会活动 (@{ int fCount = 0;  if (Model.Friend != null) {  fCount = Model.Friend.Count(); }} @fCount )</span></li>
                        <li id="#tabs-2"><span>纯体育活动 (@{ int sCount = 0;  if (Model.Sport != null) {  sCount = Model.Sport.Count(); }} @sCount )</span></li>
                        <li id="#tabs-3"><span>老乡活动 (@{ int lCount = 0;  if (Model.HomeTown != null) {  lCount = Model.HomeTown.Count(); }} @lCount )</span></li>
                        <li id="#tabs-4"><span>其他活动 (@{ int qCount = 0; if (Model.Other != null) { qCount = Model.Other.Count(); }} @qCount )</span></li>
                    </ul>
                    <div class="more_operate">
                        小三角</div>
                </div>
                <div class="main_tab_box">
                    <div class="operate_box">
                        @using (Html.BeginForm("PartySearch", "Party", FormMethod.Post))
                        {

                            { Html.RenderPartial("_PartySearchSelection", new DLM.Web.ViewModel.CountrySelectionPageView()); }

                        }
                    </div>
                    <div class="act_list">
                        <div class="act_header clearfix">
                            <a href="@Url.Action("Publish", "Party")" class="creat_act"></a>
                           @* <div class="more">
                                <a href="@Url.Action("List", "Party")">更多...</a></div>*@
                        </div>
                        <div class="act_content_wrap">
                            <div id="divFriend" class="act_content">
                                @{Html.RenderPartial("_Friend", Model.Friend);}
                            </div>
                            <div id="divSport" class="act_content" style="display: none;">
                                @{Html.RenderPartial("_Sport", Model.Sport);}
                            </div>
                            <div id="divTown" class="act_content" style="display: none;">
                                @{Html.RenderPartial("_HomeTown", Model.HomeTown);}
                            </div>
                            <div id="divOther" class="act_content" style="display: none;">
                                @{Html.RenderPartial("_HomeTown", Model.Other);}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--main-end-->
    </div>
        <div class="friend_link">
        <h1>友情链接</h1>
        <ul>
            <li><a href="http://www.wifiduoduo.com">宽带出租精灵
              @*  <img src="upload/logo.gif" />*@</a></li>
        </ul>
    </div>
     @Html.Action("Footer", "Home")
    <script type="text/javascript" src="@Url.Content("~/Scripts/ui.js")"></script>
</body>
</html>
